package com.toycloud.business.controller.baseConfig;

import com.toycloud.business.dto.params.FeedbackConfigPNameParams;
import com.toycloud.business.dto.results.CommonResult;
import com.toycloud.business.service.IFeedbackConfigService;
import com.toycloud.system.domain.dto.FeedBackConfigBrandDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * @author hlchan
 * @version 1.0
 * @date 2024/9/29 9:58
 */
@RestController
@RequestMapping("/brand")
public class BrandConfigController {
    @Autowired
    IFeedbackConfigService feedbackConfigService;

    /**
     * 获取基础配置信息数据
     */
    @GetMapping("/list")
    public CommonResult<List<FeedBackConfigBrandDTO>> list(@Valid FeedbackConfigPNameParams params) {
        return feedbackConfigService.getBrandConfig(params);
    }

}
